package cn.keniykey.mc.viewlibrary.packet.api;

import cn.keniykey.mc.viewlibrary.container.api.EContainerType;

public final class PacketWindowOpenDispatch extends AbWindowPacketDispatch {
	private final EContainerType type;
	private final String title;
	private final int size;

	public PacketWindowOpenDispatch(int windowid, EContainerType windowtype, String windowtitle, int windowsize) {
		super(windowid);
		this.type = windowtype;
		this.title = windowtitle;
		this.size = windowsize;
	}
	public PacketWindowOpenDispatch(int windowid, EContainerType windowtype, String windowtitle) {
		this(windowid,windowtype,windowtitle,0);
	}
	public PacketWindowOpenDispatch(EContainerType windowtype, String windowtitle) {
		this.type = windowtype;
		this.title = windowtitle;
		this.size = 0;
	}

	public EContainerType getContainerType() {
		return this.type;
	}

	public String getTitle() {
		return this.title;
	}
	
	public int getSize() {
		return this.size;
	}
}